<html>
<%const {timu:data,title,dir,type} = require(`../tiku_onepage/mock.json`)%>

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="shortcut icon" type="image/x-icon" href="//www.ieduchina.com/statics/pcc/img/favicon.ico">
  <title>国际教育网_<%=title%></title>
</head>

<body>
  <%=require(`./components/header/index.ejs`)({title})%>
  <section class="section_d8e9fec9">
    <%const abc = ["A","B","C","D","E","F"]%>
    <%data.forEach((item,index_)=>{%>
    <%if(item.type && item.type =="select"){%>
    <div class="tm">
      <div><%=item.id%>.
        <%item.timu.forEach((timu)=>{%>
        <%if(timu.type=="img"){%>
        <img src="<%=require(`../tiku_onepage/components/timu/images/${dir}/${timu.value}.png`)%>" alt="">
        <%}else {%>
        <%=timu.value%>
        <%}%>
            <%})%>
      </div>
      <div class="option">
        <div class="layui-form-item">
          <div class="layui-input-block">
            <%item.options.forEach((opt,index)=>{%>
            <label>
              <span <%=abc[index]==item.dan?'class="active"':''%>><i></i></span><%=abc[index]%>.&nbsp;
              <%if(opt.type && opt.type=="img"){%>
              <img src="<%=require(`../tiku_xinjiapo/components/timu/images/${dir}/${opt.value}.png`)%>" alt="">
              <%}else{%>
              <%=opt.value%>
              <%}%>
              </label>  
              <%})%>
          </div>
        </div>
      </div>
    </div>
    <div class="bg">
      <p><span>学生答案：</span><span>评分：5</span></p>
      <div class="d">
        <p><span class=""><%=item.dan %></span></p>
      </div>
    </div>
    <div class="bg">
      <p><span>标准答案：</span></p>
      <div class="d">
        <p><span><%=item.dan %></span></p>
      </div>
    </div>
    <%}else{%>
    <div class="tm">
      <div><%=item.id%>.
        <%item.timu.forEach((timu)=>{%>
        <%if(timu.type && timu.type=="img"){%>
        <img src="<%=require(`../tiku_onepage/components/timu/images/${dir}/${timu.value}.png`)%>" alt="">
        <%}else{%>
        <%=timu.value%>
        <%}%>
        <%})%>
      </div>
    </div>

    <div class="bg">
      <p><span>学生答案：</span><span>评分：5</span></p>
      <div class="d">
        <p class="">
          <%item.dan.forEach((en)=>{%>
          <%if(en.type=="str"){%>
          <%=en.value%>
          <%}else if(en.type=="img"){%>
          <img src="<%=require(`../tiku_onepage/components/timu/images/${dir}/${en.value}.png`)%>" alt="">
          <%}%>
            <%})%>
        </p>
      </div>
    </div>
    <%if(type!=="article"){%>
    <div class="bg">
      <p><span>标准答案：</span></p>
      <div class="d">
        <p>
          <%item.dan.forEach((en)=>{%>
          <%if(en.type=="str"){%>
          <%=en.value%>
          <%}else if(en.type=="img"){%>
          <img src="<%=require(`../tiku_onepage/components/timu/images/${dir}/${en.value}.png`)%>" alt="">
          <%}%>
          <%})%>
        </p>
      </div>
    </div>
    <%}%>
    <%}%>
    <%})%>
  </section>
</body>

</html>